//
//  GPSHelper.h
//  BosidengIphone
//
//  Created by  on 12-1-8.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>

@protocol GPSDelegate

- (void)updataHeading:(CLLocationDirection)heading;

- (void)updataLocation:(CLLocationCoordinate2D)coordinate;

@end

@interface GPSHelper : NSObject<CLLocationManagerDelegate> {
    CLLocationManager *locationManager;
    id<GPSDelegate> delegate;
}
@property(nonatomic, retain)id<GPSDelegate> delegate;

//开启电子罗盘
- (void)startHeading;
//关闭电子罗盘
- (void)stopHeading;
//开启GPS
- (void)startLocation;
//关闭GPS
- (void)stopLocation;

@end
